/*
 * Administrador.java
 *
 * Created on 2 de febrero de 2006, 12:46 PM
 */

package administrador;

/**
 *
 * @author  Cesar Tenesaca Landi
 */
public class Administrador extends javax.swing.JFrame {
   
    /** Creates new form Administrador */
    public Administrador() {
        initComponents();
       
        
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        tp_controles = new javax.swing.JTabbedPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        m_conexion = new javax.swing.JMenu();
        mi_conectar = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Administrador");
        tp_controles.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tp_controlesMouseClicked(evt);
            }
        });

        getContentPane().add(tp_controles, java.awt.BorderLayout.CENTER);

        m_conexion.setText("Conexi\u00f3n");
        m_conexion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                m_conexionActionPerformed(evt);
            }
        });

        mi_conectar.setText("Conectar");
        mi_conectar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mi_conectarActionPerformed(evt);
            }
        });

        m_conexion.add(mi_conectar);

        jMenuBar1.add(m_conexion);

        setJMenuBar(jMenuBar1);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-800)/2, (screenSize.height-600)/2, 800, 600);
    }// </editor-fold>//GEN-END:initComponents

    private void tp_controlesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tp_controlesMouseClicked
// TODO add your handling code here
//        System.out.println("Le dio un LCICKKCKCKCKCKCKKC");
//        javax.swing.JTabbedPane comp=(javax.swing.JTabbedPane)tp_controles.getSelectedComponent();
//        //comp.refrescar();
    }//GEN-LAST:event_tp_controlesMouseClicked

    private void m_conexionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_conexionActionPerformed

    }//GEN-LAST:event_m_conexionActionPerformed

    private void mi_conectarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mi_conectarActionPerformed
      //  new inicio(this).setVisible(true);
    }//GEN-LAST:event_mi_conectarActionPerformed
    
    /**
     * @param args the command line arguments
     */
    
    public static void main(String args[]) {
        
        try {
	        javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        } catch (InstantiationException e) {
                    System.out.println("a "+e.getMessage());
        } catch (ClassNotFoundException e) {
                    System.out.println("b "+e.getMessage());
        } catch (javax.swing.UnsupportedLookAndFeelException e) {
                    System.out.println("c "+e.getMessage());
        } catch (IllegalAccessException e) {
                    System.out.println("d "+e.getMessage());
        }
        
       
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Administrador().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu m_conexion;
    private javax.swing.JMenuItem mi_conectar;
    public javax.swing.JTabbedPane tp_controles;
    // End of variables declaration//GEN-END:variables
    
}
